<template>
  <van-swipe :autoplay="3000" lazy-render>
    <van-swipe-item v-for="image in banner" :key="image.id" style="">
      <img :src="image.image" />
    </van-swipe-item>
  </van-swipe>
</template>

<script>
// import "vant/lib/swipe/style";
// import "vant/lib/swipeItem/style";
export default {
  name: "MySwiper",
  props: {
    banner: Array,
  },
};
</script>

<style scoped>
img {
  width: 100%;
}
</style>
